package com.css.crm.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.css.crm.dao.ExchangeRateDao;
import com.css.crm.vo.ExchangeRateVo;

/**
 * Implementation for CrmExchRteDao
 * 
 * @author ais
 */
public class ExchangeRateDaoImpl extends BaseDaoImpl implements ExchangeRateDao {

	public ExchangeRateDaoImpl() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.css.crm.dao.CrmExchRteDao#getCrmExchRteById(java.lang.String)
	 */
	@Override
	public ExchangeRateVo getCrmExchRteById(String id) {

		SqlSession session = getMyBatisSession();
		return session.selectOne("exchangeRate.getCrmExchRteById", id);
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.CrmExchRteDao#queryCrmExchRte(com.css.crm.vo.CrmExchRteVo
	 * )
	 */
	@Override
	public List<ExchangeRateVo> queryCrmExchRte(ExchangeRateVo vo) {

		SqlSession session = getMyBatisSession();
		return session.selectList("crmExchRte.queryCrmExchRte", vo);
	}

}
